{include file="public/greenheader"}


<!-- Start of Page Container -->
<div class="page-container">
    <div class="container">
        <div class="row">
            <!-- start of page content -->
            <div class="span8 page-content">
                <ul class="breadcrumb">
                    <li><a href="#">Knowledge Base Theme</a><span class="divider">/</span></li>
                    <li><a href="#" title="tag">{$article.lm}</a>
                        <span class="divider">/</span></li>
                    <li class="active">{$article.title}</li>
                </ul>
                <article class=" type-post format-standard hentry clearfix">
                    <h1 class="post-title"><a href="#">{$article.title}</a></h1>
                    <div class="post-meta clearfix">
                        <span class="date">
                            {assign name="createtime" value="$article.createtime|date='Y-m-d'"}
                            {if $createtime == '1970-01-01'}
                                2018-10-12
                            {else/}
                                {$createtime}
                            {/if}
                        </span>
                        <span class="category"><a href="{:url('/list/' .$article.lm )}" title="list">{$article.lm}</a></span>
                        <span class="comments"><a href="#">0 评</a></span>
                        <span class="like-count">66</span>
                    </div>
                    <!-- end of post meta -->
                    <!--{:html_entity_decode($article.content)}-->
                    {$article.content|raw}
                </article>
                <div class="like-btn">
                    <form id="like-it-form" action="#" method="post">
                        <span class="like-it ">66</span>
                        <input type="hidden" name="post_id" value="99">
                        <input type="hidden" name="action" value="like_it">
                    </form>
                    <span class="tags">
                        <!--<strong>Tags:&nbsp;&nbsp;</strong>-->
                        <!--<a href="#" rel="tag">basic</a>,-->
                        <!--<a href="#" rel="tag">setting</a>,-->
                        <!--<a href="http://knowledgebase.inspirythemes.com/tag/website/" rel="tag">website</a>-->
                    </span>
                    <span class="source"><a href="{$article.oldurl}" target="_blank">本文来自网络，原文地址</a></span>
                </div>
                <section id="comments">
                    <h3 id="comments-title">({$comm_count}) 评论</h3>
                    <ol class="commentlist">
                        {volist name="comm" id="vo"}
                        <li class="comment even thread-even depth-1" id="li-comment-2">
                            <article id="comment-2">
                                <a href="#">
                                    <img alt="" src="http://1.gravatar.com/avatar/50a7625001317a58444a20ece817aeca?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60">
                                </a>
                                <div class="comment-meta">
                                    <h5 class="author">
                                        <cite class="fn">
                                            <a href="#" rel="external nofollow" class="url">{$vo.username}</a>
                                        </cite>
                                        - <a class="comment-reply-link" href="#">Comment</a>
                                    </h5>
                                    <p class="date">
                                        <a href="#">
                                            <time datetime="2013-02-26T13:18:47+00:00">{$vo.createtime|date="Y-m-d H:i:s"}
                                            </time>
                                        </a>
                                    </p>

                                </div><!-- end .comment-meta -->
                                <div class="comment-body">
                                    <p>{$vo.content}<a href="">&nbsp;&nbsp;回复</a></p>
                                </div>
                            </article>
                            <!--底下是回复-->
                            <ul class="children">
                                {if array_key_exists('reply', $vo)}
                                {volist name="vo.reply" id="r"}
                                <li class="comment byuser comment-author-saqib-sarwar bypostauthor odd alt depth-2" id="li-comment-3">
                                    <article id="comment-3">
                                        <a href="#">
                                            <img alt="" src="http://0.gravatar.com/avatar/2df5eab0988aa5ff219476b1d27df755?s=60&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60">
                                        </a>
                                        <div class="comment-meta">
                                            <h5 class="author">
                                                <cite class="fn">{$r.username}</cite>
                                                - <a class="comment-reply-link" href="#">Reply</a>
                                                - <a class="">{$r.to_username}</a>
                                            </h5>
                                            <p class="date">
                                                <a href="#">
                                                    <time datetime="2013-02-26T13:20:14+00:00">{$r.createtime|date="Y-m-d H:i:s"}
                                                        pm
                                                    </time>
                                                </a>
                                            </p>

                                        </div><!-- end .comment-meta -->
                                        <div class="comment-body">
                                            <p>{$r.content}<a href="">&nbsp;&nbsp;回复</a></p>
                                        </div><!-- end of comment-body -->
                                    </article><!-- end of comment -->
                                </li>
                                {/volist}
                                {/if}
                            </ul>
                        </li>
                        {/volist}

                    </ol>

                    <div id="respond">
                        <h3>Leave a Reply</h3>
                        <div class="cancel-comment-reply">
                            <a rel="nofollow" id="cancel-comment-reply-link" href="#" style="display:none;">Click here to cancel reply.</a>
                        </div>
                        <form action="#" method="post" id="commentform">
                            <p class="comment-notes">Your email address will not be published. Required fields are marked
                                <span class="required">*</span>
                            </p>
                            <div>
                                <label for="author">Name *</label>
                                <input class="span4" type="text" name="author" id="author" value="" size="22">
                            </div>
                            <div>
                                <label for="email">Email *</label>
                                <input class="span4" type="text" name="email" id="email" value="" size="22">
                            </div>
                            <div>
                                <label for="url">Website</label>
                                <input class="span4" type="text" name="url" id="url" value="" size="22">
                            </div>
                            <div>
                                <label for="comment">Comment</label>
                                <textarea class="span8" name="comment" id="comment" cols="58" rows="10"></textarea>
                            </div>
                            <div>
                                <input class="btn" name="submit" type="submit" id="submit" value="提交">
                            </div>
                        </form>
                    </div>
                </section>
            </div>
            <!-- end of page content -->


            <!-- start of sidebar -->
            <aside class="span4 page-sidebar">

                <section class="widget">
                    <h3 class="title">Tags</h3>
                    <div class="tagcloud">
                        {volist name='tags' id="t"}
                        {if $t.tag == 'node.js'}
                        <a href="{:url('/list/node')}" class="tag btn btn-mini">{$t.tag}</a>
                        {else/}
                        <a href="{:url('/list/' . $t.tag)}" class="tag btn btn-mini">{$t.tag}</a>
                        {/if}
                        {/volist}
                    </div>
                </section>


                <section class="widget">

                </section>


                <section class="widget">

                </section>

                <section class="widget">


                </section>

            </aside>
            <!-- end of sidebar -->
        </div>
    </div>
</div>
<!-- End of Page Container -->

{include file="public/footer"}

</body>
</html>
